<?php

namespace app\shop\controller\setting;

use app\Request;
use app\shop\controller\Controller;
use app\shop\model\settings\FeedBackModel;

/**
 * 用户管理
 */
class FeedBack extends Controller
{

    public function index(Request $request)
    {
        $where = $request->param();
        $list = FeedBackModel::listData($where, $this->getData(), []);
        return $this->renderSuccess('', compact('list'));
    }

    public function edit(Request $request)
    {
        $where = $request->param();

        FeedBackModel::read($where);
        return $this->renderSuccess('', FeedBackModel::one($where));
    }

    public function delete(Request $request)
    {
        $where = $request->param();

        return $this->renderSuccess('', FeedBackModel::deleteData($where));
    }

    public function read(Request $request)
    {
        $where = $request->param();

        return $this->renderSuccess('', FeedBackModel::read($where));
    }
}
